<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>代理商品 - 新增设置</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 新增设置 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 代理商品 <i class="icon-angle-right"></i> </li>
          <li> <a href="/agent/setting">升级设置</a> <i class="icon-angle-right"></i> </li>
          <li>新增设置</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->
    
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <form class="form-horizontal" method="post" onSubmit="return chkfrm();" action="/agent/savesetting" role="form">
          <input type="hidden" name="act" value="add">
          <div class="tabbable tabbable-custom boxless">
            <div class="tab-content"> 
              <!--Tab0-->
              <div class="tab-pane active" id="tab_0">
                <div class="portlet box blue ">
                  <div class="portlet-title">
                    <div class="caption"> <i class="icon-reorder"></i> 基本信息 </div>
                  </div>
                  <div class="portlet-body form">
                    <div class="form-body">
                      <div class="form-group">
                        <label class="col-md-2 control-label">代理级别</label>
                        <div class="col-md-4">
                          <select class="form-control" name="agent_level">                       
                            <?php
                            if($this->c['agent_level'])
                            {
                              foreach($this->c['agent_level'] as $role_id =>$name)
                              {
                                if($role_id>1 && $role_id<5)
                                {
                                  echo '<option value="'.$role_id.'">'.$name.'</option>';
                                }
                                
                              }
                            } 
                            ?>  
                          </select>
                          </div>
                      </div>                      
                      <hr>                      
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品1</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[1][id]" maxlength="10" placeholder="请填写商品1的ID" class="form-control" value="">                          
                        </div>
                        <label  class="col-md-1 control-label">数量</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[1][number]" maxlength="10" placeholder="请填写数量" class="form-control" value="">                          
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品2</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[2][id]" maxlength="10" placeholder="请填写商品2的ID" class="form-control" value="">                          
                        </div>
                        <label  class="col-md-1 control-label">数量</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[2][number]" maxlength="10" placeholder="请填写数量" class="form-control" value="">                          
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品3</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[3][id]" maxlength="10" placeholder="请填写商品3的ID" class="form-control" value="">                          
                        </div>
                        <label  class="col-md-1 control-label">数量</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[3][number]" maxlength="10" placeholder="请填写数量" class="form-control" value="">                          
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品4</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[4][id]" maxlength="10" placeholder="请填写商品4的ID" class="form-control" value="">                          
                        </div>
                        <label  class="col-md-1 control-label">数量</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[4][number]" maxlength="10" placeholder="请填写数量" class="form-control" value="">                          
                        </div>
                      </div>
                      <div class="form-group">
                        <label  class="col-md-2 control-label">商品5</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[5][id]" maxlength="10" placeholder="请填写商品5的ID" class="form-control" value="">                          
                        </div>
                        <label  class="col-md-1 control-label">数量</label>
                        <div class="col-md-2">
                          <input type="text" name="goods[5][number]" maxlength="10" placeholder="请填写数量" class="form-control" value="">                          
                        </div>
                      </div>
                    </div>
                    <div class="form-actions fluid">
                      <div class="col-md-offset-2 col-md-9">
                        <button type="submit" class="btn blue">提交</button>
                      </div>
                    </div>
                  </div>
                </div>
              </div>              
              
              <!--End Tab--> 
            </div>
          </div>
        </form>
        <!-- END SAMPLE FORM PORTLET--> 
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>
<script>
jQuery(document).ready(function() {    
  App.init();
});
</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>